import React, { Component } from 'react'
import { Switch, Route, Redirect } from "react-router-dom" 
import Home from './Home'
import Detail from './Detail'
import AddUpdate from './AddUpdate'

export default class CommodityManagement extends Component {
  render() {
    return (
      <>
       <Switch>
         <Route path="/admin/administration/home" component={ Home }></Route>
         <Route path="/admin/administration/detail" component={ Detail }></Route>
         <Route path="/admin/administration/addupdate" component={ AddUpdate }></Route>
         <Redirect to="/admin/administration/home"></Redirect>
      </Switch> 
      </>
    )
  }
}
